﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;

namespace HelloAbp
{
    class Program
    {
        static void Main(string[] args)
        {
            var application = AbpApplicationFactory.Create<HelloAbpModule>(); //加载启动模块
            application.Initialize(); //启动模块初始化

            var service = application.ServiceProvider.GetService<IHelloWorldService>(); //利用启动模块，获取服务
            service.Run(); //执行服务定义的方法

        }
    }
}
